package design_patterns.Mediator;

/**
 * @author chengz
 * @description description
 * @create 2020-08-18 11:41
 */
public class User {
    private String userName;

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public User(String userName) {
        this.userName = userName;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
